import request from '@/utils/request'

// 查询专题列表
export function getPage(query) {
  return request({
    url: '/tennis/coach/list',
    method: 'get',
    params: query
  })
}

// 查询专题详细
export function getObj(id) {
  return request({
    url: '/tennis/coach/' + id,
    method: 'get'
  })
}

// 新增专题
export function addObj(data) {
  return request({
    url: '/tennis/coach',
    method: 'post',
    data: data
  })
}

// 修改专题
export function putObj(data) {
  return request({
    url: '/tennis/coach',
    method: 'put',
    data: data
  })
}

// 删除专题
export function delObj(id) {
  return request({
    url: '/tennis/coach/' + id,
    method: 'delete'
  })
}

// 导出专题
export function exportcoach(query) {
  return request({
    url: '/tennis/coach/export',
    method: 'get',
    params: query
  })
}
